package com.hospital.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.common.utils.PageUtils;
import com.hospital.modules.sys.entity.SysPatientVisitRecordEntity;
import com.hospital.modules.sys.entity.SysUserEntity;
import com.hospital.modules.sys.entity.dto.PatientVisitRecordExportDTO;
import com.hospital.modules.sys.entity.vo.SysPatientVisitQueryListVO;

import java.util.List;

/**
 * 患者就诊日志表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-12-11 09:41:39
 */
public interface SysPatientVisitRecordService extends IService<SysPatientVisitRecordEntity> {

    /**
     * 分页查询
     *
     * @param params
     * @return
     */
    PageUtils queryPage(SysPatientVisitQueryListVO params, SysUserEntity sysUserEntity);

    /**
     * 插入
     *
     * @param sysPatientVisitRecord
     * @param sysUserEntity
     */
    void insert(SysPatientVisitRecordEntity sysPatientVisitRecord, SysUserEntity sysUserEntity);

    /**
     * 修改
     *
     * @param sysPatientVisitRecord
     * @param sysUserEntity
     */
    void modify(SysPatientVisitRecordEntity sysPatientVisitRecord, SysUserEntity sysUserEntity);

    /**
     * 删除
     *
     * @param asList
     * @param sysUserEntity
     */
    void delete(List<Integer> asList, SysUserEntity sysUserEntity);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    SysPatientVisitRecordEntity getInfoById(Integer id);

    /**
     * 导出
     *
     * @param params
     * @param user
     * @return
     */
    List<PatientVisitRecordExportDTO> export(SysPatientVisitQueryListVO params, SysUserEntity user);
}

